//
//  BaseNavigationViewController.m
//  UodorBlog
//
//  Created by Samuel on 12/25/14.
//
//

#import "BaseNavigationViewController.h"

@interface BaseNavigationViewController ()

@end

@implementation BaseNavigationViewController
{
    UIButton *leftButton;
    UIButton *rightButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    self.view.backgroundColor = [UIColor whiteColor];
    
    [self.navigationBar setBackgroundColor:[UIColor redColor]];
    
    
}

- (UIButton*)setNavigationDefaultLeftButton
{
    leftButton = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 44, 44)];
    [leftButton setBackgroundColor:[UIColor greenColor]];
    UIBarButtonItem *leftItem = [[UIBarButtonItem alloc]initWithCustomView:leftButton];
    self.navigationItem.leftBarButtonItem = leftItem;
    return leftButton;
}
- (UIButton*)setNavigationDefaultRightButton
{
    rightButton = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 44, 44)];
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc]initWithCustomView:rightButton];
    self.navigationItem.rightBarButtonItem = rightItem;
    return rightButton;
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
    NSLog(@"!!!!!");
}


@end
